-- GENERATED SPELL FOR [Parts Recovery Technician] --


function spell0_34267(pUnit, Event) --@Defense Matrix,n/a--
pUnit:FullCastSpellOnTarget(65070,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34267', 16500, 1)
end

function spell1_34267(pUnit, Event) --@Mechano Kick,n/a--
pUnit:FullCastSpellOnTarget(65071,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34267', 531, 1)
end

function Sorts_34267(pUnit, Event)
local choix_sorts_34267 = math.random(0, 1)
if choix_sorts_34267 == 0 then
pUnit:RegisterEvent('spell0_34267', 1, 1)
end
if choix_sorts_34267 == 1 then
pUnit:RegisterEvent('spell1_34267', 1, 1)
end
end

function mob34267_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34267', math.random(1500, 3000), 1)
end

function mob34267_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34267_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34267_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34267, 1, 'mob34267_Action')
RegisterUnitEvent(34267, 2, 'mob34267_Leave')
RegisterUnitEvent(34267, 3, 'mob34267_Kill')
RegisterUnitEvent(34267, 4, 'mob34267_Die')
